﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Sanitizing の概要の説明です
/// </summary>
public class Sanitizing
{
    //public Sanitizing()
    //{
    //    //
    //    // TODO: コンストラクタ ロジックをここに追加します
    //    //
    //}

    public static string SafeLiteral(string input)
    {
        input = input.Replace("'", "");
        input = input.Replace("<", "");
        input = input.Replace(">", "");
        input = input.Replace("\"", "");
        return input;
    }
    public static string SafeSQLLiteral(string input)
    {
        input = input.Replace("%", "");
        return SafeLiteral(input);
    }

}
